Skip to content

Update pg_hba generation #48

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Feb 14, 2015
Merged

Update pg_hba generation #48

merged 1 commit into from
Feb 14, 2015

Conversation

yosifkit
Copy link
Member

This makes it so that it no longer blocks on username. If no POSTGRES_PASSWORD is specified it will be very insecure (trust any user from anywhere), otherwise it will have md5 as the auth method.

Fixes: #47
Related: #31

@@ -19,6 +19,8 @@ if [ "$1" = 'postgres' ]; then
cat >&2 <<-'EOWARN'
****************************************************
WARNING: No password has been set for the database.
This will allow anyone to connect to your
postgres database.
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think this needs a tiny bit more information about exactly who can connect, because it's not really "anyone", it's "anyone with access to the port".

My take:

This will allow anyone with access to the Postgres port to access your database.  In Docker's default configuration, this is effectively any other container on the same system.

Use "-e POSTGRES_PASSWORD=password" to set a password in "docker run".

@tianon
Copy link
Member

tianon commented Feb 13, 2015

Other than nitpicking the wording of the message, LGTM.

@yosifkit
Copy link
Member Author

Updated, ping @tianon.

@tianon
Copy link
Member

tianon commented Feb 14, 2015

LGTM

tianon added a commit that referenced this pull request Feb 14, 2015
Update pg_hba generation
@tianon tianon merged commit 6e89f39 into docker-library:master Feb 14, 2015
@tianon tianon deleted the hba branch February 14, 2015 00:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Can't connect from other applications by default
2 participants